package com.example.smart_city_0829;

import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;

import com.example.smart_city_0829.retrofit.RetrofitBuilder;
import com.example.smart_city_0829.utils.Constant;

public class SmartCity extends Application {

    private static Context context;
    protected static SharedPreferences sharedPreferences;

    @Override
    public void onCreate() {
        super.onCreate();

        sharedPreferences = getSharedPreferences(Constant.SHARED_PREFERENCE_NAME_USER, Context.MODE_PRIVATE);

        new RetrofitBuilder.Builder()
                .builder();



        context = this;
    }

    public static Context getContext() {
        return context;
    }

    public static SharedPreferences getSharedPreferences() {
        return sharedPreferences;
    }

}
